package com.demo.seckill.mybatis;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * @author libo
 * @ClassName UserInfo
 * @date 2018/12/28 16:03
 */

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class UserInfo {
    private int id;
    private String name;
    private int  age;
    private String sex;
    private int addressId;
    private Address address;
    private List<Car> cars;

    public UserInfo(String name,int age,String sex){
        this.name = name;
        this.age = age;
        this.sex = sex;
    }
}

